package com.dj.mingkong.admin.biz.controller.music.vo.request;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.URL;

import java.io.Serializable;

/**
 * 音乐专辑VO
 *
 * @author zenglonghui
 * @date: 2022/7/21 15:48
 */
@Data
@Accessors(chain = true)
public class AlbumAddVo implements Serializable {
    /**
     * 专辑名称
     */
    @NotBlank(message = "name can not be blank")
    @Size(min = 1, max = 18, message = "name invalid")
    @Pattern(regexp = "/^\\S+(\\s+\\S+)*$/", message = "name invalid")
    private String name;

    /**
     * 专辑描述
     */
    @Size(max = 480, message = "description invalid")
    @Pattern(regexp = "/^\\S+(\\s+\\S+)*$/", message = "description invalid")
    private String description;

    /**
     * 专辑封面
     */
    @NotBlank(message = "cover can not be blank")
    @Size(min = 1, max = 230, message = "cover invalid")
    @URL(message = "cover invalid")
    private String cover;

}
